home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 30 / PC Gamer IT CD 30 1-2.iso / MOTS / GAMEDATA / RESOURCE / JKMRES.GOO / cog_thing_proj_image.cog < prev    next >
Text File  |  1998-02-25  |  782b  |  43 lines

  1. # Jedi Knight Missions Cog Script
  2. #
  3. # thing_proj_image.cog
  4. #
  5. # Cog to manage informing the engine of the creation
  6. # and destruction of a force projection dummy.
  7. #
  8. # [RF]
  9. #
  10. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  11. # ==========================================================
  12.  
  13. symbols
  14.  
  15. message    created
  16. message    removed
  17.  
  18. end
  19.  
  20. # ==========================================================
  21.  
  22. code
  23.  
  24. created:
  25.         // Tell the ai to start worrying about this thing.
  26.     if (!IsMulti())
  27.         aiSetDistractor(GetSenderRef());
  28.     return;
  29.  
  30. removed:
  31.         // Tell the ai that the thing is gone.
  32.     if (!IsMulti())
  33.     {
  34.         //print("Removing Distractor!");
  35.  
  36.         aiSetDistractor(-1);
  37.     }
  38.     return;
  39.  
  40. end
  41.  
  42. # ==========================================================
  43.